package five_class_design_creational_patterns.six_PrototypePattern.shallow;

/**
 * @author 北巷_东坡
 * @date 2022/10/16 10:15
 * @computer 10741
 */
public class Customer_LDP206 implements Cloneable{
    private Address_LDP206 address_ldp = null;

    public Customer_LDP206(){
        this.address_ldp = new Address_LDP206();
    }

    public Object clone(){
        Customer_LDP206 clone = null;
        try{
            clone = (Customer_LDP206)super.clone();
        }
        catch (CloneNotSupportedException e){
            System.out.println("Clone failure");
        }
        return clone;
    }

    public Address_LDP206 getAddress_ldp() {
        return this.address_ldp;
    }

    public void display(){
        System.out.println("查看IP地址");
    }
}
